package com.caigou.modules.center.adapter

import com.caigou.modules.center.R
import com.caigou.modules.center.bean.MessageItemBean
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.module.LoadMoreModule
import com.chad.library.adapter.base.viewholder.BaseViewHolder

/**
 * @author #Suyghur.
 * Created on 2021/11/03
 */
class MessageItemAdapter(dataset: MutableList<MessageItemBean>) : BaseQuickAdapter<MessageItemBean, BaseViewHolder>(R.layout.item_message_list, dataset),
    LoadMoreModule {
    override fun convert(holder: BaseViewHolder, item: MessageItemBean) {
        holder.setText(R.id.item_message_tv_time, item.createTime)
        holder.setText(R.id.item_message_tv_content, item.content)
    }
}